package com.example.mallboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author DELL
 */ //@SpringBootApplication
@SpringBootConfiguration
@EnableAutoConfiguration
@ComponentScan("com.example.mallboot")
public class MallbootApplication {

    public static void main(String[] args) {
         //返回我们ioc容器
         ConfigurableApplicationContext run = SpringApplication.run(MallbootApplication.class, args);

        //查看容器里面的组件
//        String[] names = run.getBeanDefinitionNames();
//        for (String name : names){
//            System.out.println(name);
//        }

        //
    }

}
